package com.lyl.syt.modules.mongodb.dao;

import com.lyl.syt.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalDao extends MongoRepository<Hospital,String> {

    //根据 hoscode 查询医院
    Hospital findByHoscode(String hoscode);

    //根据医院名称模糊查询
    List<Hospital> findByHosnameLike(String hosname);
}
